//
//  DBLaunchViewController.m
//  DianBa
//
//  Created by karl on 2018/8/20.
//  Copyright © 2018年 DianBa. All rights reserved.
//

#import "DBLaunchViewController.h"

@interface DBLaunchViewController ()

@end

@implementation DBLaunchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSString *imageName = [NSString stringWithFormat:@"%d_%d",(int)SCREEN_WIDTH,(int)SCREEN_HEIGHT];
    
    UIImageView *launchImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [launchImageView setImage:[UIImage imageNamed:imageName]];
    [self.view addSubview:launchImageView];
    
    if (self.delegate && [self.delegate respondsToSelector:@selector(launchEnterHomeViewController)]) {
        [self.delegate launchEnterHomeViewController];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
